module.exports = function(config){
  config.set({

    basePath : '../',

    files : [
      'app/bower_components/angular/angular.js',
      'app/bower_components/angular-route/angular-route.js',
      'app/bower_components/angular-mocks/angular-mocks.js',
      'app/js/**/*.js',
      'test/unit/**/*.js'
    ],

    autoWatch : true,

    // coverage reporter generates the coverage
    reporters: ['progress', 'coverage'],

    preprocessors: {
      // source files, that you wanna generate coverage for
      // do not include tests or libraries
      // (these files will be instrumented by Istanbul)
      'app/js/**/*.js': ['coverage']
    },

    frameworks: ['jasmine'],

    browsers: ['Chrome'],

    plugins : [
              'karma-chrome-launcher'
            , 'karma-firefox-launcher'
            , 'karma-jasmine'
            , 'karma-junit-reporter'
            , 'karma-phantomjs-launcher'
            , 'karma-coverage',
            ],

    coverageReporter: {
      type : 'html',
      dir : 'coverage/'
    }

  });
};
